#ifndef MATH_H
#define MATH_H
#include <string>

namespace jfw
{
    //hash - returns integer hash for string
    int hash(std::string s)
    {
        int h = 0;
        for (unsigned i = 0; i < s.size(); i++)
        {
            h = 31*h + s.at(i);
        }
        return h;
    }

}

#endif
